#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
void abc(char* arr,int shift)
{
	int sz = strlen(arr);
	shift %= 26;
	for (int i = 0; i < sz; i++)
	{
		if ((arr[i] >= 'A' && arr[i] <= 'Z'))
		{
			int tmp = arr[i] + shift;
			if (tmp > 'Z')
			{
				tmp -= 'Z';
				arr[i] = tmp + 'A'-1;
			}
			else
			{
				arr[i] = tmp;
			}
		}
		else
			if ((arr[i] >= 'a' && arr[i] <= 'z'))
			{
				int tmp = arr[i] + shift;
				if (tmp > 'z')
				{
					tmp -= 'z';
					arr[i] = tmp + 'a'-1;
				}
				else
				{
					arr[i] = tmp;
				}
			}
			else
				continue;
	}
}
int main()
{
	char arr[] = "aBcDef1abcd";
	int shift = 25;
	abc(arr, shift);
	printf("%s",arr);
}